import request from '@/utils/request'

// 查询奖金申请列表
export function listAnxinBonusApplication(query) {
  return request({
    url: '/bonus/anxinBonusApplication/list',
    method: 'get',
    params: query
  })
}

// 查询奖金申请详细
export function getAnxinBonusApplication(id) {
  return request({
    url: '/bonus/anxinBonusApplication/' + id,
    method: 'get'
  })
}

// 保存奖金申请
export function saveAnxinBonusApplication(data) {
  return request({
    url: '/bonus/anxinBonusApplication/save',
    method: 'post',
    data: data
  })
}

// 删除奖金申请
export function delAnxinBonusApplication(id) {
  return request({
    url: '/bonus/anxinBonusApplication/' + id,
    method: 'delete'
  })
}

// 导出奖金申请
export function exportAnxinBonusApplication(query) {
  return request({
    url: '/bonus/anxinBonusApplication/export',
    method: 'get',
    params: query
  })
}
